<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>报表导入</title>
<jsp:include page="../../../common/head.jsp">
	<jsp:param name="_useUpload" value="true"/>
</jsp:include>
<script language="javaScript">	
	// 导出报表
	function importReport()
	{
		var objarr = new Array(
			["upload","导入文件","notEmpty",""],
			["reportDetailId","请选择要导入的项目","notEmpty",""]
		);
		if(xj.CheckAll(objarr))
		{
			if(confirm("确认导入？"))
				return true
		}
		return false;
	}
</script>
	</head>
	<body>
	<form name="form1" id="reportForm"  action="importReportByReportEngine.do" method="post" enctype="multipart/form-data" onsubmit="return importReport()">
	<div id="body_div">
	<w:ShowTitle name="选择导入项目">
	<w:TitleButton funcName="导入" funcType="submit" urlImg="${ctx}/images/main/add.png"/>
	</w:ShowTitle>
	<div id="body_content">
	<input type="hidden" name="reportId" value="${reportId}"/>
		<table width="100%">
			<tr>
				<td width="120">
					导入文件
				</td>
				<td>
					<w:uploadFile isList="false" isAdd="true" folder="report_import"></w:uploadFile>
				</td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td class="td_title" width="40">
					<span onclick="xjCommon.checkAll('reportDetailId');" >全选</span>
				</td>
				<td class="td_title">
					项目名称
				</td>
				<td class="td_title" width="70" width="80">
					数据类型
				</td>
			</tr>
			<c:forEach items="${datalist}" var="obj">
				<tr>
					<td>
						<c:choose>
							<c:when test="${obj.isDefaultImport eq 'true'}">
								<input type="checkbox" name="reportDetailId" value="${obj.reportDetailId}" checked="checked"/>
							</c:when>
							<c:otherwise>
								<input type="checkbox" name="reportDetailId" value="${obj.reportDetailId}"/>
							</c:otherwise>
						</c:choose>
					</td>
					<td>
						${obj.reportDetailName}
					</td>
					<td>
						${obj.dataType}
					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
	</div>
	</form>
	</body>
</html>




